# -*- coding:utf-8 -*-
"""
@Author : 审心
@Time : 2023/5/2 16:28
redis 键值管理文件
"""
from dataclasses import dataclass

import config

key_prefix = config.data.get("redis.keyPrefix")


@dataclass
class MarketRank:
    key: str = key_prefix + "淘宝:生意参谋:商品:市场商品排行"
    key_excel: str = key + ":Excel_Base64"


@dataclass
class Goods:
    key: str = key_prefix + "淘宝:生意参谋:商品"
    market_rank: MarketRank = MarketRank()


@dataclass
class KeyWordList:
    key: str = key_prefix + "淘宝:生意参谋:相关分析:关键词列表:"


@dataclass
class Jpfx:
    key: str = key_prefix + "淘宝:生意参谋:竞品分析:"


@dataclass
class Xgfx:
    key: str = key_prefix + "淘宝:生意参谋:相关分析:"
    key_word_list: KeyWordList = KeyWordList()


@dataclass
class Ssph:
    key: str = key_prefix + "淘宝:生意参谋:搜索排行:"


@dataclass
class Llly:
    """流量来源"""
    key: str = key_prefix + "淘宝:生意参谋:流量来源:"


@dataclass
class Dpxx:
    """店铺信息"""
    key: str = key_prefix + "淘宝:店铺信息:"


@dataclass
class Sycm:
    key: str = key_prefix + "淘宝:生意参谋:"
    goods: Goods = Goods()
    xgfx: Xgfx = Xgfx()
    jpfx: Jpfx = Jpfx()
    ssph: Ssph = Ssph()
    llly: Llly = Llly()



@dataclass
class RedisKey:
    key: str = key_prefix + "淘宝:"
    sycm = Sycm()
    dpxx: Dpxx = Dpxx()